export const dateFormat = 'YYYY-MM-DD'

// 日/周/月
export const typeOptions = [
  { value: 'day', label: '日' },
  { value: 'week', label: '周' },
  { value: 'month', label: '月' }
]

export const typeOptionsMap = {}

typeOptions.forEach(item => {
  typeOptionsMap[item.value] = item.label
})

export const userTypeOptions = [
  { value: 'all', label: '所有用户' },
  { value: 'new', label: '新用户' },
  { value: 'old', label: '老用户' }
]

export const userTypeMap = {}

userTypeOptions.forEach(item => {
  userTypeMap[item.value] = item.label
})

export const platformTypeOptions = [
  { value: 'all', label: '所有平台' },
  // { value: 'skyWeb', label: '智算服务平台' },
  { value: 'BYApplet', label: '百应 小程序' },
  { value: 'BYPc', label: '百应 PC端' },
  { value: 'BYWeb', label: '百应 网页端' }
]

export const platformTypeMap = {}

platformTypeOptions.forEach(item => {
  platformTypeMap[item.value] = item.label
})
